<?php
	header("Content-type: text/html; charset=utf-8");
	//中文正则
	$str = "中文正则";
	if(preg_match("/^[\x7f-\xff]+$/",$str))
	{
		echo $str;
	}
	else
	{
		echo "error";	
	}
	//身份证ID
	$id = "123456789123456789";
	if(is_numeric($id)&&(strlen($id)==18))
	{
		echo $id;
	}
	else
	{
		echo "error";
	}
	//邮箱正则
	$email = "ian.email@qq.com";
	if(preg_match('/^[a-z0-9]+[a-zA-Z0-9.-]+@[a-zA-Z0-9]+[.a-zA-Z]+$/', $email))
	{
		echo $email;
	}
	else
	{
		echo "error";
	}	
?>